﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace J.Model
{
    /// <summary>
    /// 商品设置
    /// </summary>
    public class ProductSetup
    {
        /// <summary>
        /// 商品设置ID
        /// </summary>
        [Key]
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int ProductSetupId { get; set; }
        /// <summary>
        /// 购买时间
        /// </summary>
        public int PurchaseMinutes { get; set; }
        /// <summary>
        /// 商家发货
        /// </summary>
        public int MerchantDelivery { get; set; }
        /// <summary>
        /// 叠加规则
        /// </summary>
        public bool SuperpositionRule { get; set; }
        /// <summary>
        /// 会员折扣
        /// </summary>
        public bool MemberDiscount { get; set; }
        /// <summary>
        /// 优惠券
        /// </summary>
        public bool Coupon { get; set; }
        /// <summary>
        /// 预约商品确认
        /// </summary>
        public bool productConfirmation { get; set; }
        /// <summary>
        /// 超过时间在productConfirmation为false时
        /// </summary>
        public int OverTime { get; set; }
        /// <summary>
        /// 是否预约在productConfirmation为false时
        /// </summary>
        public int ReservationNot { get; set; }
        /// <summary>
        /// 预订日期范围
        /// </summary>
        public int BookingDateRange { get; set; }
        /// <summary>
        /// 是否显示销量
        /// </summary>
        public int WhetherToShow { get; set; }
        /// <summary>
        /// 初始销量
        /// </summary>
        public int InitialSales { get; set; }
        /// <summary>
        /// 推荐商品展示
        /// </summary>
        public string? RecommendedProductDisplay { get; set; }
    }
}
